<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/ui-btn.css">
	<link rel="stylesheet" href="css/ui-base.css">
	<link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/ui-res.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/zy_control.js"></script>
	<script src="js/zy_click.js"></script>
	<script src="js/dis_control.js"></script>
    <script></script>
</head>
<body class="um-vp c-wh" ontouchstart>
    <div id="page_0" class="up ub ub-ver" tabindex="0">
        <!--header开始-->
        <div id="header" class="uh">
        	<div class="umh015"></div>
        	<div class="c-blu3 c-m2 t-wh uc-a uba us b-gra uinn6">
				<a class="btn btn-l btn-a ub ub-ac" ontouchstart="zy_touch('btn-act1')" onclick="closewin();">       
					<div class="ulim">返回</div>       
				</a>
                <h1 class="ut ulev0 ut-s tx-c" tabindex="0" id="title">我的位置</h1>
			</div>
			<div style="height:1px;"></div>
        </div>
        <!--header结束--><!--content开始-->
        <div id="content" class="ub-f1 tx-l t-bla">
            <div id="map" style="height:100%; width:100%;"></div>
        </div>
        <!--content结束-->
    </div>
</body>
<script>
zy_init();
var params = getStorJson('params');
window.uexOnload = function(type){
    if (!type) {
        zy_con("content", "map_content.html", 0, $$("header").offsetHeight);
		//uexWindow.toast('1','5','地图加载中...',"");
		//loadScript();
    }
	window.onorientationchange=window.onresize=function()
	{
		zy_resize("content",0,$$("header").offsetHeight);				
	}
}
function loadScript() {
  var script = document.createElement("script");
  script.src = "http://api.map.baidu.com/api?v=1.2&callback=loadmap";
  document.body.appendChild(script);
}
function loadmap(){
	var lat = params.lat;
	var lng = params.log;

	var map = new BMap.Map("content");          // 创建地图实例
	logs('loadmap()-->lat='+lat+', lng='+lng);

	var opts = {type: BMAP_NAVIGATION_CONTROL_LARGE };  
	map.addControl(new BMap.NavigationControl(opts)); 
	//map.addControl(new BMap.MapTypeControl());  
	var point = new BMap.Point(lng,lat);  // 创建点坐标
	//map.setCurrentCity("北京");
	map.centerAndZoom(point, 15); 
	var marker = new BMap.Marker(point);        // 创建标注  
	map.addOverlay(marker); 

	uexWindow.closeToast();
}
</script>
</html>
